package io.awen.modules.sign.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.awen.common.utils.PageUtils;
import io.awen.modules.sign.entity.SignContainerAlarmEntity;
import io.awen.modules.sign.entity.SignContainerEntity;
import io.awen.modules.sign.qo.SignContainerAlarmQo;

/**
 * 报警信息记录表
 *
 * @author liu.wen
 * @email liu.wen@qq.com
 * @date 2022-08-10 00:47:08
 */
public interface SignContainerAlarmService extends IService<SignContainerAlarmEntity> {

    PageUtils queryPage(SignContainerAlarmQo qo);

    PageUtils queryPageOfNoFinsih(SignContainerAlarmQo qo);

    /**
     * 判断是否报警。如果超标且还没有报警，则产生报警，生成调度
     * @param container
     */
    void juegeAlarm(SignContainerEntity container);

    int total(SignContainerAlarmQo qo);
}

